package com.chenhs.oop.study.线程;

/**
 * @className: com.chenhs.oop.study.线程-> ThreadImp
 * @description: 继承Thread类实现多线程
 * @author: chenhs
 * @createDate: 2024-03-09 16:45
 * @version: 1.0
 */
public class My01Thread extends Thread {
    @Override
    public void run() {
        //       线程中需要做的事情
        for (int i = 0; i < 100; i++) {
            System.out.println(this.getName()+"正在运行。");
        }
    }
}
